package cn.rubintry.flowbus

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import cn.rubintry.flow.bus.FlowBus

class SecondActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second)
//        FlowBus.getDefault().post("tag" , "这是第二个页面")
        val startTime = System.currentTimeMillis()
        Thread(Runnable {
            for (index in 0..1000000){
                FlowBus.getDefault().post("tag" , startTime)
            }
        }).start()
    }
}